package guda.house.biz.enums;

/**
 * Created by well on 16/1/26.
 */
public enum MeterTypeEnum {

    meter("抄表"),
    ic("ic卡"),
    gate("国家电网"),



    ;

    private String desc;

    MeterTypeEnum(String desc){
        this.desc = desc;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public static MeterTypeEnum getByDesc(String s){
        MeterTypeEnum[] values = MeterTypeEnum.values();
        for(MeterTypeEnum meterTypeEnum:values){
            if(meterTypeEnum.desc.equals(s)){
                return meterTypeEnum;
            }
        }
        return null;
    }
}
